/*
** 3030.c
** 
** Made by (seakage2h)
** Login   <seakage2h@seakage2h-ubuntu>
** 
** Started on  Fri Oct  3 13:53:44 2008 seakage2h
** Last update Sun May 12 01:17:25 2002 Speed Blue
*/

/* #include "3030.h" */
#include <stdio.h>

int main()
{
     int n, r, e, c;

     scanf("%d", &n);
     while(n){
	  scanf("%d %d %d", &r, &e, &c);
	  if (e - c > r)
	       printf("advertise\n");
	  else if (e - c == r)
	       printf("does not matter\n");
	  else printf("do not advertise\n");
	  n--;
     }
     return 0;
}

